﻿using System;

namespace CxRomos.Core.Domain.Entities {
    public class Term {
        public Term() {}

        public virtual int TermId { get; set; }
        public virtual DateTime CreateDate { get; set; }
        public virtual string Terms { get; set; }

        public override int GetHashCode() {
            int toReturn = base.GetHashCode();
            toReturn ^= TermId.GetHashCode();
            return toReturn;
        }

        public override bool Equals(object obj) {
            if (obj == null) {
                return false;
            }
            var toCompareWith = obj as Term;
            return toCompareWith == null ? false : ((TermId == toCompareWith.TermId));
        }

    }
}